home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14804 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: taco.cc.ncsu.edu!news
  2. From: dksmith@eos.ncsu.edu
  3. Newsgroups: comp.lang.c++
  4. Subject: URGENT (for me) Linker Problem
  5. Date: 1 Apr 1996 23:51:55 GMT
  6. Organization: North Carolina State University
  7. Message-ID: <4jpq6r$6c4@taco.cc.ncsu.edu>
  8. NNTP-Posting-Host: cc04du.unity.ncsu.edu
  9.  
  10. I am writing some C++ code in Borland 3.1/4.5   In this code I call
  11. a C module with some functions I need in it. When I compile the resulting
  12. code I get the following linker error for each of the external C functions:
  13. LINKER ERROR: Undefined symbol <symbol> in module <module>.
  14. This problem is not alleviated by declaring the functions with the external
  15. keyword in my C++ code. When I tried to declare these functions, wrapping
  16. the declarations with the extern "C" keywords I get the following error:
  17. <function name> was previously declared in the language "
  18.  
  19. Can anyone tell me how to get rid of the linker errors?
  20. BTW, all of the appropriate files are in my project file.
  21.  
  22. If anyone can help me, I would appreciate it if you could send the answer to
  23. dksmith@eos.ncsu.edu. Thanks in advance.
  24.  
  25. -David Smith
  26.  
  27.